Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / GetPdfEnum Method / GetPdfEnum<T>(IPdfDict,PdfName,Nullable<T>) Method
The current dictionary.
The key identifying the value.
The default value.

In This Topic
    GetPdfEnum<T>(IPdfDict,PdfName,Nullable<T>) Method
    In This Topic
    Gets the nullable GrapeCity.Documents.Pdf.PdfEnum<TEnum> value associated with the specified key. If the value does not exist returns defValue (which can be null).
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetPdfEnum(Of T As {New, Struct})( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal defValue As System.Nullable(Of T) _
    ) As System.Nullable(Of PdfEnum(Of T))
    public static System.Nullable<PdfEnum<T>> GetPdfEnum<T>( 
       IPdfDict dict,
       PdfName key,
       System.Nullable<T> defValue
    )
    where T: new(), struct

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    defValue
    The default value.

    Type Parameters

    T

    Return Value

    The value associated with the specified key, or defValue.
    See Also